#
#make for first assignment
#
CC=gcc
CFLAG=-g 
a.out: sema_thread.o pro_con.o
	$(CC) $(CFLAG) -pthread sema_thread.o pro_con.o
sema_thread.o: sema_thread.c sema_thread.h
	$(CC) -c sema_thread.c
pro_con.o: pro_con.c sema_thread.h
	$(CC) -c pro_con.c
clean:
	rm -f *.o
	rm -f *~
	rm -f core
demo: a.out
	a.out
	
